﻿{% extends "base.html" %}
{% load tags %}
{% block title %}Skyriaus apkrovimo ataskaita{% endblock %}
{% block pickDate %}{% include "monthPicker.html" %}{% endblock %}
{% block content %}
<h1 class="headerText">Skyriaus apkrovimo ataskaita</h1>
<table class="sortable reportTable" >
  <thead>
    <tr>
      <th sort_index="0">Data</th>
      <th sort_index="1">Darbuotojai (val.)</th>
      <th sort_index="2">Resursai (val.)</th>
      <th sort_index="3">Biudžetas (val.)</th>
      <th sort_index="4">Padengta (%)</th>
    </tr>
  </thead>
  <tbody>
    {% for d in department %}
    <tr class="{{ forloop.counter|oddOrEven }}">
      <td>{{ d.date|date:"Y-m" }}</td>
      <td>{{ d.workers }}</td>
      <td>{{ d.resource }}</td>
      <td>{{ d.budget }}</td>
      <td>{{ d.percent|floatformat:1 }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{% endblock %}